Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update markup.lua - Caught bug at 159 #405

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

alejandro-alzate
Copy link
Contributor

Fixed: /usr/local/share/lua/5.1/ldoc/markup.lua:159: attempt to index local 'line' (a nil value)
By adding a check enclosing all the lines that play with line making sure is not nil

I Don't know exactly why is being triggered but i hope it helps.

Copy link
Member

@alerque alerque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this case can be hit if @lookup happens to be the last line in a multiline markdown block. The original code assumed it could be processed and then there would be more to process. Thanks for the fix.

@alerque alerque merged commit f91ed4b into lunarmodules:master Jul 22, 2024
2 checks passed
@alejandro-alzate
Copy link
Contributor Author

no problemoo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants